package me.zhengjie.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description TODO
 * @Author Long
 * @Date 2021/8/13 14:27
 */
@Data
@TableName("sys_user")
@ApiModel(description = "后台用户实体类")
public class User {

    @ApiModelProperty("ID")
    @TableId(type = IdType.AUTO)
    private Long userId;

    @ApiModelProperty("部门名称id")
    private Long deptId;

    @TableField("username")
    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("昵称")
    private String nickName;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("手机号码")
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("头像地址")
    private String avatarName;

    @ApiModelProperty("头像真实路径")
    private String avatarPath;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("是否为admin账号")
    private Boolean  isAdmin;

    @ApiModelProperty("状态：1启用、0禁用")
    private Long enabled;

    @ApiModelProperty("创建者")
    private String createBy;

    @ApiModelProperty("更新者")
    private String updateBy;

    @ApiModelProperty("修改密码的时间")
    private Date pwdResetTime;

    @ApiModelProperty("创建日期")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "第三方绑定用户名")
    private String thirdUserName;

}
